<link type="text/css" rel="stylesheet" href="__CSS__/Wechat.css"/>
<div class="col-xs-12">
    <div class="row" style="margin-bottom: 20px;">
        <div class="col-xs-12 uc_information" style="margin-left: 10px;">
            <ul class="nav nav-pills ucenter-tab">
                <li
                <eq name="tab" value="Wechat"> class="uc_current"</eq>
                ><a href="{:U('appList',array('type'=>$type,'uid'=>$uid,'tab'=>'Wechat'))}">{:L('_PUBLISH_DE_')}</a></li>
                <li
                <eq name="tab" value="Wechat_in"> class="uc_current"</eq>
                ><a href="{:U('appList',array('type'=>$type,'uid'=>$uid,'tab'=>'Wechat_in'))}">{:L('_PART_IN_DE_')}</a></li>
            </ul>

        </div>
    </div>
    <if condition="!$list">
        <div class="row">
            <div class="col-xs-12">
                <p class="text-muted" style="text-align: center; font-size: 3em;">
                    <br/><br/>
                    {:L('_TIP_NOT_POST_NOW_')}
                    <br/><br/><br/>
                </p>
            </div>
        </div>
    </if>
    <volist name="list" id="document">
        <php>
            $user = query_user(array('avatar128','avatar64','nickname','uid','space_url'),
            $document['uid']);
        </php>
        <div class="row">
            <div class="col-xs-2 text-center">
                <p>
                    <a href="{$user.space_url}">
                        <img src="{$user.avatar64}" ucard="{$user.uid}" class="avatar-img"/>
                    </a>
                </p>
            </div>
            <div class="col-xs-10">

                <p>

                    <a class="Wechat_Wechat_name" href="{:U('Wechat/Index/Wechat',array('id'=>$document['Wechat_id']))}" target="_blank">[{$document.Wechat.title}]</a><a
                        class="Wechat-list-title-link" title="{$document.title|htmlspecialchars}"
                        href="{:U('Wechat/Index/detail',array('id'=>$document['id']))}" target="_blank">{$document.title|htmlspecialchars|mb_substr=0,30,'utf-8'}
                </a>
                    <eq name="document.is_top" value="2"><i class="post_top">{:L('_ALL_SITE_')}</i>
                        <else/>
                        <eq name="document.is_top" value="1"><i class="post_top_Wechat">{:L('_SECTION_')}</i></eq>
                    </eq>


                </p>

                <p class="pull-right text-muted">
                    <span>{:L('_READ_')}（{$document.view_count}）</span>
                    <span style="width: 1em; display: inline-block;">&nbsp;</span>
                    <span>{:L('_REPLY_')}（{$document.reply_count}）</span>
                </p>

                <p class="text-muted author">
                    <a href="{$user.space_url}" ucard="{$user.uid}">{$user.nickname|op_t}</a>
                    {:L('_PUBLISH_')}：{$document.create_time|friendlyDate}

                </p>
            </div>
        </div>


        <if condition="$i neq count($list)">
            <hr class="Wechat-list-hr"/>
            <else/>
            <div class="Wechat-list-no-hr"></div>
        </if>
    </volist>
    <div class="pull-right">
        {:getPagination($totalCount,15)}
    </div>
</div>